package com.qzw.demo.web.controller;

import com.qzw.demo.api.model.User;
import com.qzw.demo.api.service.IUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author: 屈子威
 * @create: 2020-07-14
 * @description:
 **/
@RestController("DmUserController")
@RequestMapping("/dm/user")
@Api(tags = "示例用户管理")
public class UserController {
    @Autowired
    private IUserService userService;

    @GetMapping
    @ApiOperation("查询用户")
    public List<User> place(){
       return userService.findAll();
    }
}
